from django.db import models

# Create your models here.
class PriceModel(models.Model):
    cate=models.CharField(max_length=10,verbose_name='类型')
    price=models.DecimalField(max_digits=5,decimal_places=2,verbose_name='折扣')
    is_pub=models.CharField(max_length=5,verbose_name='状态')
    ks_time=models.DateField(verbose_name='开始时间')
    js_time=models.DateField(verbose_name='结束时间')
    class Meta:
        db_table='price'
    def __str__(self):
        return self.cate